#include "lcd_isplay_screen.h"

void Lcd_isplay_screen::setSize(float _size)
{
    size=_size;
}

void Lcd_isplay_screen::setModel(string _model)
{
    model=_model;
}


void Lcd_isplay_screen::print ()
{
    cout<<"液晶显示屏"<<endl<<"a.尺寸："<< size<<endl<< "b.型号："<< model<<endl;
}


void Lcd_isplay_screen::save (string path)
{
    ofstream ofs;// 创建流对象
    ofs.open(path, ios::out | ios::app);

    ofs<< "液晶显示屏"<<endl<<"a.尺寸："<< size<<endl<< "b.型号："<< model<<endl;

    ofs.close();
}
